package com.genius.unite_platform.device.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.genius.adminmanager.other.entity.ResponseJson;
import com.genius.unite_platform.device.service.DeviceService;
import com.genius.workflow.log.ControllerLog;

@Controller
public class DeviceDeleteController {
	@Autowired
    @Qualifier("DeviceDeleteService")
    private DeviceService DeviceDeleteService;
	/**
	 * 删除操作
	 */
	@ControllerLog(description="删除陈列设备")
	@PostMapping("/device/batchdel")
	@ResponseBody
	public JSONObject batchdel(@RequestBody JSONObject json){
		JSONObject response = new JSONObject();
    	response.put(ResponseJson.code, 0);
    	DeviceDeleteService.batchdel(json, response);
		return response;
	}
}

